import request from "@/utils/request";

// 职务和科室下拉字典数据
export function dictDataForDoctor(data) {
  return request({
    url: "/chronicdisease/hospital/dictDataForDoctor",
    method: "post",
    data: data,
  });
}
// 医生列表
export function doctorList(data) {
  return request({
    url: "/chronicdisease/hospital/doctorList",
    method: "post",
    data: data,
  });
}
// 新增/修改医生
export function saveDoctor(data) {
  return request({
    url: "/chronicdisease/hospital/saveDoctor",
    method: "post",
    data: data,
  });
}

// 删除医生
export function delDoctor(data) {
  return request({
    url: "/chronicdisease/hospital/delDoctor",
    method: "post",
    data: data,
  });
}
// 医生照护的所有患者
export function patientAllList(data) {
  return request({
    url: "/chronicdisease/webDoctor/patientAllList",
    method: "post",
    data: data,
  });
}

// 患者对医生的评价-统计
export function countEvaluateOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/countEvaluateOfWeb",
    method: "post",
    data: data,
  });
}
// 患者对医生的评价-列表
export function evaluateListOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/evaluateListOfWeb",
    method: "post",
    data: data,
  });
}

// 更换医生申请-列表
export function doctorChangeApplyList(data) {
  return request({
    url: "/chronicdisease/hospital/doctorChangeApplyList",
    method: "post",
    data: data,
  });
}

// 医生个人信息
export function doctorDetailOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/doctorDetailOfWeb",
    method: "post",
    data: data,
  });
}

// 医生个人信息修改
export function updateDoctorOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/updateDoctorOfWeb",
    method: "post",
    data: data,
  });
}

// 获取医生端首页数据
export function getHomeInfoOfWeb(data) {
  return request({
    url: "/chronicdisease/webDoctor/getHomeInfoOfWeb",
    method: "post",
    data: data,
  });
}

// 最新测量数据
export function newestBloodTestList(data) {
  return request({
    url: "/chronicdisease/webDoctor/newestBloodTestList",
    method: "post",
    data: data,
  });
}
